package com.dyna.foundation.failback;

import com.dyna.domain.dto.LoginUser;
import com.dyna.domain.resp.R;
import com.dyna.foundation.domain.entity.SysUser;
import com.dyna.foundation.domain.resp.SysUserResp;
import com.dyna.foundation.feign.FoundationUserApi;
import org.springframework.stereotype.Component;

/**
 * @author zhoucaiwang
 * @date 2024/3/30
 */
@Component
public class FoundationUserFailBack implements FoundationUserApi {

    @Override
    public R<SysUserResp> getUser(Long userId) {
        return R.data(new SysUserResp());
    }

    @Override
    public R<LoginUser> getLoginUserById(Long userId) {
        return null;
    }

    @Override
    public R<SysUser> getUserByUsername(String username) {
        return R.data(new SysUser());
    }

    @Override
    public R<Boolean> deleteUser(Long userId) {
        return null;
    }

    @Override
    public R<Boolean> testDel(Long userId) {
        return null;
    }

}
